Payment
Payment object
Name | Type | Description |
---|---|---|
object | string | The type of object, which is "payment" in this case. |
id | string | The unique identifier of the payment transaction. |
livemode | boolean | Indicates whether the transaction is in live mode (false) or test mode (true). |
provider | string | The payment provider used for the transaction (e.g., "invoice"). |
method | string | The payment method used for the transaction (e.g., "invoice"). |
status | string | The status of the payment (e.g., "ok" for successful). |
policy_id | string | The ID of the policy associated with this payment. |
charge_id | string | The ID of the charge, if applicable. |
fee | number | The fee amount for the transaction (usually 0 for no fee). |
reference | string | A reference ID for the payment, if applicable. |
token | string | A token representing the payment transaction. |
reason | string | The reason for the payment, if applicable. |
processed_at | string | The timestamp when the payment was processed, if applicable. |
error_code | string | The error code, if there was an error during the payment process. |
metadata | string | An array containing additional metadata about the payment. |
transaction_metadata | string | An array containing additional metadata related to the transaction. |
customer_id | string | The ID of the customer associated with this payment. |
refunds | string | An array of refund objects associated with the payment (empty in this case). |
_links | string | An object containing various links related to the payment (e.g., self-link for accessing the payment). |
Depending on the requester permissions, some fields of payment object are restricted.
Create a payment
Convert an offer to paid policy.
POST
https://api.eu1.kaskocloud.com/payments
Query Parameters
Name | Type | Description |
---|---|---|
key | String | Public key |
Headers
Name | Type | Description |
---|---|---|
Authorization | String | Bearer: <Secret-key> |
Request Body
Name | Type | Description |
---|---|---|
token | String | Payment token |
provider | String | Payment provider |
method | String | Payment method |
policy_id | String | Policy ID |
View payment
View payment
GET
https://api.eu1.kaskocloud.com/payments/{paymentId}
Path Parameters
Name | Type | Description |
---|---|---|
paymentId* | String | Payment ID |
Headers
Name | Type | Description |
---|---|---|
Authorization | String | Bearer: <Secret-key> |
Last updated