(receipts)
- create - Create receipts for transfers and scheduled transfers.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/transfers.write
scope.
- list - List receipts by trasnferID, scheduleID, or occurrenceID.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/transfers.read
scope.
Create receipts for transfers and scheduled transfers.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/transfers.write
scope.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.receipts.create(request=[
{
"kind": components.ReceiptKind.SALE_CUSTOMER_V1,
"email": "[email protected]",
},
])
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
request |
List[components.ReceiptRequest] | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.CreateReceiptsResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.GenericError | 400, 409 | application/json |
errors.ReceiptValidationError | 422 | application/json |
errors.APIError | 4XX, 5XX | */* |
List receipts by trasnferID, scheduleID, or occurrenceID.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/transfers.read
scope.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.receipts.list()
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
id |
Optional[str] | ➖ | The unique identifier to filter receipts by. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.ListReceiptsResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.APIError | 4XX, 5XX | */* |