課金: Update

Request

PATCH https://api.univapay.com/stores/{storeId}/charges/{chargeId}

Parameters:

Parameters
metadataobject
課金に紐づいているメタデータ

Headers:

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

Body:

curl --request PATCH \
--url https://api.univapay.com/stores/af857264-180c-11e7-9be2-276aea4fed28/charges/0fe1e42a-1845-11e7-9b1f-d3bd0c055a99 \
--header 'Authorization: Bearer {secret}.{jwt}' \
--header 'content-type: application/json' \
--data '{"metadata": {"order_id": 1234}}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "id": "0fe1e42a-1845-11e7-9b1f-d3bd0c055a99",
  "store_id": "af857264-180c-11e7-9be2-276aea4fed28",
  "transaction_token_id": "06e076b6-1845-11e7-a7bf-67a3521ea48c",
  "requested_amount": 1000,
  "requested_currency": "JPY",
  "requested_amount_formatted": 1000,
  "charged_amount": 1000,
  "charged_currency": "JPY",
  "charged_amount_formatted": 1000,
  "status": "pending",
  "error": null,
  "metadata": {
    "order_id": 1234,
    "shipping_details": "Customer wants it now"
  },
  "mode": "test",
  "created_on": 1491207055635
}