KingTravel Shopping API
  1. Ticket Booking API
KingTravel Shopping API
ShoppingAPI
  • ShoppingAPI
  • Ticket Booking Process
    • Booking Process
  • Ticket Booking API
    • Search
      POST
    • Verify
      POST
    • Booking
      POST
    • Cancel
      POST
    • Pay
      POST
    • Query
      POST
  • Ticket Booking Notification
    • Notify
      POST
  • Error Codes
    • Search
    • Verify
    • Booking
  • Attachment
    • About Booking AES Encryption
  1. Ticket Booking API

Pay

POST
/ndc/v1/pay
If the final reserved price is received, pay can be called for "ticket issuance" operation. Once the pay is successful, refunds and changes need to be made according to the quotation policy.

Request

Authorization
API Key
Add parameter in header
appKey
Example:
appKey: ********************
API Key
Add parameter in header
appSecret
Example:
appSecret: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200成功
application/json
success
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:9002/api/ndc/v1/pay' \
--header 'appKey: <api-key>' \
--header 'appSecret: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "platFormOrderId": "AF19987663562124",
    "recordNo": "AEDFAC"
}'
Response Response Example
{
    "status": 0,
    "msg": "string"
}
Modified at 2025-12-03 04:24:53
Previous
Cancel
Next
Query
Built with