post http://{{url}}/v1/charges/
Request params
field | required | type | description |
---|---|---|---|
id | + | string (24 hex characters) | _id received at the creation stage |
Request body
field | required | type | description |
---|---|---|---|
subscription_id | - | string (24 hex characters) | You can assign a single charge to an existing subscription. |
Request body for charges of a wallet type (Apple Pay, Flypay, PayPal Smart Button)
field | required | type | description |
---|---|---|---|
currency | - | string (iso4217 alpha-3) | The currency code of the transaction |
amount | - | string | To update amount of a charge |
shipping | - | object | Shipping details of the transaction |
shipping.address_line1 | - | string | The customer's shipping address, line 1 |
shipping.address_line2 | - | string | The customer's shipping address, line 2 |
shipping.address_state | - | string | The customer's shipping address, state |
shipping.address_country | - | string | The customer's shipping address, country code |
shipping.address_city | - | string | The customer's shipping address, city |
shipping.address_postcode | - | string(numeric) | The customer's shipping address, postcode |
shipping.address_origin_postcode | - | string(numeric) | The customer's shipping address, origin postcode |
shipping.address_company | - | string | The customer's shipping address, company |
shipping.method | - | string | The customer's shipping method for a transaction |