Skip to main content

GatewayType

Definition

GatewayType Type
gatewayType.json
{
"id": 0,
"typeName": "",
"typeCode": "",
"createdAt": "",
"updatedAt": "",
}

Get GatewayTypes

curl -X GET "https://${baseUrl}/gateway-type/?\$filter=&\$orderBy=&\$page=1&\$pageSize=10" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Get GatewayType

curl -X GET "https://${baseUrl}/gateway-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Apply GatewayType.ID

curl -X POST "https://${baseUrl}/apply/gateway-type/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Create GatewayType

curl -X POST "https://${baseUrl}/gateway-type/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @gatewayType.json
info
gatewayType.json
{
"typeName": "",
"typeCode": "",
}
tip

success status: 201

Update GatewayType

curl -X PUT "https://${baseUrl}/gateway-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @gatewayType.json
info
gatewayType.json
{
"typeName": "",
"typeCode": "",
}

Update GatewayType Partial

curl -X PATCH "https://${baseUrl}/gateway-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Attrs: typeName,typeCode" \
-d @gatewayType.json
info
gatewayType.json
{
"typeName": "",
"typeCode": "",
}

Destroy GatewayType

curl -X DELETE "https://${baseUrl}/gateway-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"