Skip to Content
Docs
API referenceManagement API

Billing refunds and disputes

GET /v1/billing/disputes

GET
/billing/disputes

billing.payment.v1.DisputeService/ListDisputes (38-payments-and-tax.md, API Surface, Refunds and disputes). Newest first.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

status?string

status: needs_response, under_review, won, lost or warning_closed

customer_id?string

A cust_ id

Response Body

A list of Dispute objects with pagination

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/disputes'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
GET
/billing/disputes/{dispute_id}

billing.payment.v1.DisputeService/GetDispute (38-payments-and-tax.md, API Surface, Refunds and disputes).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

dispute_id*string

id

Response Body

A Dispute object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/disputes/string'
Example Response
{  "id": "string",  "object": "string"}

GET /v1/billing/refunds

GET
/billing/refunds

billing.payment.v1.RefundService/ListRefunds (38-payments-and-tax.md, API Surface, Refunds and disputes). Newest first.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

payment_id?string

A pay_ id

customer_id?string

A cust_ id

status?string

status: pending, succeeded, failed or canceled

Response Body

A list of Refund objects with pagination

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/refunds'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

POST /v1/billing/refunds

POST
/billing/refunds

billing.payment.v1.PaymentService/RefundPayment (38-payments-and-tax.md, API Surface, Payments; Refunds). Refunds a succeeded provider payment and creates its credit note, lines spread in proportion. amount is required; reason is duplicate, fraudulent or requested_by_customer (the default). The refund is answered as it stands once sent to the provider, usually pending. More than is left of the payment, an external or unsucceeded payment, or a payment with an open dispute is refund_exceeds_payment.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Refund object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/refunds'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/refunds/{refund_id}

billing.payment.v1.RefundService/GetRefund (38-payments-and-tax.md, API Surface, Refunds and disputes).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

refund_id*string

id

Response Body

A Refund object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/refunds/string'
Example Response
{  "id": "string",  "object": "string"}