Customs declaration: Get

Request

GET https://api.gyro-n.money/stores/{storeId}/charges/{chargeId}/customs/{customsDeclarationId}
Parameters
pollingboolean
Initiates a long polling request that will return when the status is in a non pending state

Headers:

Content-Type: application/json
Authorization: Bearer {secret}.{jwt}

Body:

curl --request GET \
--url https://api.gyro-n.money/stores/11ec0537-5a17-7490-8f44-97e10b99d60d/charges/11ec0537-5a7b-26e8-8f44-1738907ed7af/customs/32252e5f-1e76-4c68-8bc9-1b4e00bd7ea4 \
--header 'Authorization: Bearer {secret}.{jwt}' \
--header 'content-type: application/json'

Response

Code: 200

Header:

Content-Type: application/json

Body:

{
  "id": "32252e5f-1e76-4c68-8bc9-1b4e00bd7ea4",
  "charge_id": "11ec0537-5a7b-26e8-8f44-1738907ed7af",
  "merchant_id": "11ec0537-59f8-cb4e-8f44-dffabef7e67c",
  "store_id": "11ec0537-5a17-7490-8f44-97e10b99d60d",
  "mode": "live",
  "gateway": "we_chat_online",
  "declaration": {
    "customs": "HANGZHOU_ZS",
    "merchant_customs_no": "123456",
    "certificate_id": "330821198809085211",
    "certificate_name": "Zhang San"
  },
  "declaration_result": {},
  "status": "pending",
  "error": null,
  "created_on": "2021-08-25T09:01:37.917677+09:00"
}