Customs Declaration: Update

This resource allows a successful custom declaration to be modified. However, only the modifiable fields may be more limited than the initial create request.

Request

PATCH https://api.gyro-n.money/stores/{storeId}/charges/{chargeId}/customs/{customsDeclarationId}

Parameters:

Parameters
declarationobject [Required]
The information to be passed to the customs authorities for declaration.
Brand: we_chat_online
Parameters
declaration.merchant_customs_nostring
The merchant’s customs registration number.
declaration.certificate_idstring
The customer’s national identification number.
declaration.certificate_namestring
The customer’s name on the national identification card.

Headers:

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

Body:

curl --request PATCH \
--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' \
--data '{
  "declaration": {
    "merchant_customs_no": "123456"
  }
}'

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"
}