Refund#
Note
Viewing documentation for the current version v1beta1.
The required Protobuf definitions can be downloaded here:
RefundService#
The refund service provides functionality for refunds.
GetRefund#
rpc GetRefund(GetRefundRequest) 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) ListRefundsResponse
Lists refunds.
Fails with INVALID_ARGUMENT
with the following reasons:
INVALID_PAGE_SIZE
if thepage_size
is less than zero.INVALID_PAGE_TOKEN
if thepage_token
does not match previous requests.
Messages#
GetRefundRequest#
The request to get a refund.
Field |
Type |
Description |
---|---|---|
refund_id |
string |
The ID of the refund. |
GetRefundResponse#
The response containing the requested refund.
Field |
Type |
Description |
---|---|---|
refund |
The refund with the given ID. |
ListRefundsRequest#
Request to list refunds.
Field |
Type |
Description |
---|---|---|
customer_id (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. |
page_size (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. |
page_token (optional) |
string |
A page token, received from a previous |
ListRefundsResponse#
Response to list refunds.
Field |
Type |
Description |
---|---|---|
refunds |
The list of refunds, ordered by date from newest to oldest. |
|
next_page_token (optional) |
string |
A token, which can be sent as |
Refund#
A refund.
Field |
Type |
Description |
---|---|---|
id |
string |
The ID of the refund. |
customer_id |
string |
The ID of the customer who requested the refund. |
trip_id |
string |
The ID of the trip for which the refund was requested. |
refund |
The gross amount to be refunded to the customer. This is equal to the original price of the trip. Must be greater than zero. |