Refund#
Note
Viewing documentation for the current version v1.
The required Protobuf definitions can be downloaded here:
RefundService#
The refund service provides functionality for refunds.
GetRefund#
rpc
GetRefund(GetRefundRequest) returns (GetRefundResponse)
Gets a refund by ID.
Fails with NOT_FOUND with the reason REFUND_NOT_FOUND if there is no refund for the requested ID.
ListRefunds#
rpc
ListRefunds(ListRefundsRequest) returns (ListRefundsResponse)
Lists refunds.
Fails with INVALID_ARGUMENT with the following reasons:
INVALID_PAGE_SIZEif thepage_sizeis less than zero.INVALID_PAGE_TOKENif thepage_tokendoes not match previous requests.
Messages#
GetRefundRequest#
The request to get a refund.
Field | Type | Description |
|---|---|---|
| string | The ID of the refund. |
GetRefundResponse#
The response containing the requested refund.
Field | Type | Description |
|---|---|---|
| The refund with the given ID. |
ListRefundsRequest#
Request to list refunds.
Field | Type | Description |
|---|---|---|
| optional string | The ID of the customer for whom to list all refunds. Optional: If not specified, all refunds of all customers are listed. Only leave this out if you really need all refunds of all customers because the list might easily become very long. |
| optional int32 | The maximum number of refunds to return. The service may return fewer than this value. If unspecified or set to zero, at most 25 refunds will be returned. The maximum value is 100; values above 100 will be coerced to 100. Negative values won’t be accepted. |
| optional string | A page token, received from a previous |
ListRefundsResponse#
Response to list refunds.
Field | Type | Description |
|---|---|---|
| repeated Refund | The list of refunds, ordered by date from newest to oldest. |
| optional string | A token, which can be sent as |
Refund#
A refund.
Field | Type | Description |
|---|---|---|
| string | The ID of the refund. |
| string | The ID of the customer who requested the refund. |
| string | The ID of the trip for which the refund was requested. |
| The gross amount to be refunded to the customer. This is equal to the original price of the trip. Must be greater than zero. |