Skip to content

Payments and gateways ​

Choose the configured gateway and complete its specific payment flow. Provider identifiers and tokens must come from that provider integration; the examples show their placement.

Access labels such as Origin + Brand key + Customer are defined in Headers and access. Each endpoint ends in a Try it console; set the host and keys once in its Settings tab or on the overview.

MethodURL pathRequired access
POST/api/v1/user/link/account/aerosyncOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.user_idstringyesWhitespace trimmed
body.payload.user_passwordstringyesWhitespace trimmed
body.payload.paymentGatewayIdnumberyes—

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/link/account/aerosync" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"user_id":"<USER_ID>","user_password":"example","paymentGatewayId":1}}'

Response: JSON with success: true and result containing the operation’s service data.

Source: app/v1/controller/aeropay_controller.ts:13 → linkAccountFromAeroSync; routes: routes/v1/aeropay_route.ts:9; service: _linkAccountFromAeroSync (app/v1/service/aeropay_service.ts:27).

Pay order from Aero pay ​

MethodURL pathRequired access
POST/api/v1/user/pay/order/aeropayOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.orderIdnumberyes—
body.payload.paymentGatewayIdnumberyes—
body.payload.bankAccountIdstringyesWhitespace trimmed

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/pay/order/aeropay" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"orderId":1,"paymentGatewayId":1,"bankAccountId":"<BANKACCOUNTID>"}}'

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: message, orderId.

Source: app/v1/controller/aeropay_controller.ts:39 → payOrderFromAeroPay; routes: routes/v1/aeropay_route.ts:19; service: _payOrderFromAeroPay (app/v1/service/aeropay_service.ts:85).

Pay order from Authorize Net ​

MethodURL pathRequired access
POST/api/v1/user/pay/order/authorizenetOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.orderIdnumberyes—
body.payload.paymentGatewayIdnumberyes—
body.payload.creditCardobjectyes—
body.payload.creditCard.cardNumberstringyesWhitespace trimmed
body.payload.creditCard.expirationDatestringyesWhitespace trimmed
body.payload.creditCard.cardCodestringyesWhitespace trimmed

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/pay/order/authorizenet" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"orderId":1,"paymentGatewayId":1,"creditCard":{"cardNumber":"example","expirationDate":"example","cardCode":"example"}}}'

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: message, orderId.

Source: app/v1/controller/authorizenet_controller.ts:10 → payOrderFromAuthorizeNet; routes: routes/v1/authorizenet_route.ts:42; service: _payOrderFromAuthorizeNet (app/v1/service/authorizenet_service.ts:16).

Pay order from Apple token ​

MethodURL pathRequired access
POST/api/v1/user/pay/order/authorizenet/apple/tokenOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.orderIdnumberyes—
body.payload.paymentGatewayIdnumberyes—
body.payload.tokenobjectyes—

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/pay/order/authorizenet/apple/token" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"orderId":1,"paymentGatewayId":1,"token":{}}}'

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: message, orderId.

Source: app/v1/controller/authorizenet_controller.ts:40 → payOrderFromAppleToken; routes: routes/v1/authorizenet_route.ts:31; service: _payOrderFromAppleToken (app/v1/service/authorizenet_service.ts:251).

Pay order from NMI ​

MethodURL pathRequired access
POST/api/v1/user/pay/order/nmiOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.orderIdnumberyes—
body.payload.paymentGatewayIdnumberyes—
body.payload.creditCardobjectyes—
body.payload.creditCard.cardNumberstringyesWhitespace trimmed
body.payload.creditCard.expirationDatestringyesWhitespace trimmed
body.payload.creditCard.cardCodestringyesWhitespace trimmed

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/pay/order/nmi" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"orderId":1,"paymentGatewayId":1,"creditCard":{"cardNumber":"example","expirationDate":"example","cardCode":"example"}}}'

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: message, orderId.

Source: app/v1/controller/nmi_controller.ts:7 → payOrderFromNMI; routes: routes/v1/nmi_route.ts:20; service: _payOrderFromNMI (app/v1/service/nmi_service.ts:10).

MethodURL pathRequired access
POST/api/v1/user/payment/link/:paymentGatewayIdOrigin + Brand key + Hub selected + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.orderIdnumberoptional—
body.payload.currencystringyesWhitespace trimmed
body.payload.emailstringoptionalEmail address
path.paymentGatewayIdnumberyes—

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/payment/link/1" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"currency":"example"}}'

Response: JSON with success: true and result containing the operation’s service data.

Source: app/v1/controller/payment_controller.js:12 → getPaymentLink; routes: routes/v1/payment_route.js:49; service: _getPaymentLink (app/v1/service/payment_service.js:30).

Get all payment gateway ​

MethodURL pathRequired access
GET/api/v1/payment/gatewaysOrigin + Brand key + Hub selected

Request fields: no body, query, or path fields are read by this controller. Context comes from the headers/middleware above.

Example:

bash
curl -X GET "$BASE_URL/api/v1/payment/gateways" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY"

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: Payment gateways configured for the selected hub.

Source: app/v1/controller/payment_controller.js:87 → getAllPaymentGateway; routes: routes/v1/payment_route.js:60; service: _getAllPaymentGateway (app/v1/service/payment_service.js:133).

Get payment gateway customer details ​

MethodURL pathRequired access
GET/api/v1/user/payment/gateways/user-info/:paymentGatewayIdOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
path.paymentGatewayIdnumberyes—

Example:

bash
curl -X GET "$BASE_URL/api/v1/user/payment/gateways/user-info/1" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN"

Response: JSON with success: true and result containing the operation’s service data.

Source: app/v1/controller/payment_controller.js:104 → getPGCustomerDetails; routes: routes/v1/payment_route.js:70; service: _getPGCustomerDetails (app/v1/service/payment_service.js:429).

Confirm payment gateway customer ​

MethodURL pathRequired access
POST/api/v1/user/payment/gateways/user/confirmOrigin + Brand key + Hub selected + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.user_pg_idstringyesWhitespace trimmed
body.payload.phone_numberstringyesWhitespace trimmed
body.payload.codestringyesWhitespace trimmed
body.payload.paymentGatewayIdnumberyes—

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/payment/gateways/user/confirm" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"user_pg_id":"<USER_PG_ID>","phone_number":"2025550123","code":"example","paymentGatewayId":1}}'

Response: JSON with success: true and result containing the operation’s service data.

Source: app/v1/controller/payment_controller.js:128 → confirmPGCustomer; routes: routes/v1/payment_route.js:81; service: _confirmPGCustomer (app/v1/service/payment_service.js:472).

Pay order from Square ​

MethodURL pathRequired access
POST/api/v1/user/pay/order/sauareOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.orderIdnumberyes—
body.payload.paymentGatewayIdnumberyes—
body.payload.noncestringyesWhitespace trimmed
body.payload.currencystringyesWhitespace trimmed

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/pay/order/sauare" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"orderId":1,"paymentGatewayId":1,"nonce":"example","currency":"example"}}'

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: message, orderId.

Source: app/v1/controller/square_controller.ts:7 → payOrderFromSquare; routes: routes/v1/square_route.ts:20; service: _payOrderFromSquare (app/v1/service/square_service.ts:10).

Pay order from Stripe ​

MethodURL pathRequired access
POST/api/v1/user/pay/order/stripeOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
body.payloadobjectyes—
body.payload.orderIdnumberyes—
body.payload.paymentGatewayIdnumberyes—
body.payload.payment_intent_idstringyesWhitespace trimmed

Example:

bash
curl -X POST "$BASE_URL/api/v1/user/pay/order/stripe" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-raw '{"payload":{"orderId":1,"paymentGatewayId":1,"payment_intent_id":"<PAYMENT_INTENT_ID>"}}'

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: message, orderId.

Source: app/v1/controller/stripe_controller.ts:7 → payOrderFromStripe; routes: routes/v1/stripe_route.ts:20; service: _payOrderFromStripe (app/v1/service/stripe_service.ts:10).

Batch platform, Shopify app and API documentation