Update a payment

Examples

curl -X PATCH https://komoju.com/api/v1/payments/0jukv29k8px7fuykd6z89321k \
  -u sk_123456: \
  -d "description=updated description" \
  -d "metadata[updated]=metadata" 
{
  "id": "0jukv29k8px7fuykd6z89321k",
  "resource": "payment",
  "status": "pending",
  "amount": 300,
  "tax": 30,
  "customer": null,
  "payment_deadline": "2018-11-16T14:59:59Z",
  "payment_details": {
    "type": "konbini",
    "email": "gordon@example.com",
    "store": "family-mart",
    "confirmation_code": "1111",
    "receipt": "12345",
    "instructions_url": "https://komoju.com/en/instructions/0jukv29k8px7fuykd6z89321k"
  },
  "payment_method_fee": 0,
  "total": 330,
  "currency": "JPY",
  "description": "updated description",
  "captured_at": null,
  "external_order_num": "ORDER2",
  "metadata": {
    "updated": "metadata"
  },
  "created_at": "2018-11-13T06:20:21Z",
  "amount_refunded": 0,
  "locale": "en",
  "refunds": [

  ],
  "refund_requests": [

  ]
}

Params

Param name Description
description
optional
Plaintext description for annotating a resource.
metadata
optional
A set of key-value pairs