DOCS

주문 번호 업데이트

주문 번호 업데이트

주문 번호를 업데이트하는 엔드포인트의 작동 방식을 알아보세요.

updateMerchantOrderId 엔드포인트는 조정, 커뮤니케이션, 감사를 위해 Zonos 시스템의 주문을 스토어 주문 ID로 업데이트하는 데 사용됩니다.

엔드포인트 

POST | https://api.iglobalstores.com/v1/updateMerchantOrderId

HTTPS 요청

필드참고
HTTP 메서드POST
엔드포인트 URLhttps://api.iglobalstores.com/v1/updateMerchantOrderId
프로토콜HTTPS
메시지 형식JSON
Accept HTTP 헤더Accept: application/json
Content-Type HTTP 헤더Content-Type: application/json

요청 본문의 JSON 키/값 쌍

1{
2 "store": "999",
3 "secret": "f5bde245-f55e-414d-b722-80b25161c12c",
4 "orderId": "999-9999",
5 "merchantOrderId": "12-34567"
6}

Request JSON definitions

필드참고
merchantOrderId REQUIREDThis parameter is used to pass your store’s internal order ID to the order in the Zonos system. This is recommended for better reconciliation, communication, and auditing.string
orderId REQUIREDThe Zonos order ID - can be passed with or without your store ID and hyphen (Example: 123-45678 or 45678).Note: After order completion and payment, the customer will be redirected to an Order Completion / Order Thank You page hosted on your domain. The URL will contain a querystring parameter “orderId” that will contain this value.integer / string
secret REQUIREDAPI secret GUID provided by Zonos.string
store REQUIREDStore ID provided by Zonosinteger

HTTPS response

1{
2 "success": "Updated Order: 99999 with new merchantOrderId: 12-34567"
3}

Error HTTP responses

Error codeDefinition
406 - Not AcceptableHTML Entity. HTTP “Accept” header is invalid.
415 - Unsupported media typeHTML Entity. HTTP “Content-Type” header is invalid.
200“error”:”could not parse input”
200“error”:”Parameter orderId is required to processUpdateMerchantOrderId”
200“error”:”Parameter merchantOrderId is required to updateMerchantOrderId.”
200“error”:”orderId: 999-99999 is not a valid orderId”
200“error”:”Could not retrieve order to updateMerchantOrderId for orderId: 999-99999”
200“error”:”Could not process update merchant order id.”
200“error”:”Invalid security credentials”

Response JSON definitions

MessageDefinition
errorThis parameter will only be present in the response when an error has occurred and will contain a description of the cause.string
successThis parameter will contain a summary of the update.string

이 페이지가 도움이 되었나요?


이 페이지에서: