Returns a paginated list of Asset Activities.
activate-assetAsset was activated.archive-assetAsset was archived.createdAsset was created.disable-assetAsset was disabled.receivedAsset was received.sentAsset was sent.tokenToken was refunded.token-redeemedToken was redeemed.value-inAsset value has been increased.value-outAsset value has been decreased.
- Asset Transaction Activity Model
The
destPartyandsrcPartyare optionally provided only on transactions of typetransfer. Values may include a merchant name, user handle, masked user email, masked user phone, or bank account.The
otherPartyis optionally provided only on transactions of typeincrement-balanceanddecrement-balance. Values may include bank account number.This extends the asset activity model
- Token Redeemed Activity Model
This records the redeeming of a token. Used when activityType is
token-redeemed. This extends the Asset Activity ModelpricebignumberThe total price in cents for the line item (eg.price = product price * qty - discounts + tax). EitherpriceorunitPriceis required; if both are supplied,pricetakes priority.typeenumThe classification type. See GS1 Global Product Classification. WhenGS1is used as the product classification type then the product code should be the GPC product brick identifier.
discountbignumberDiscount amount in cents (tax exclusive). A discount that applies to multiple Line Items may be represented as a separate Line Item with a negative amount.
errorstringThe name of the HTTP status. AlwaysBad Request.messageenumThe error code, or for a 400 a description of what's wrong with the request.Bad RequestThe request is malformed or missing required fields. The message says what's wrong, egamount is required. See 400 Malformed Request.
statusCodeintegerThe HTTP status code. Always400.
errorstringThe name of the HTTP status. AlwaysUnauthorized.messageenumThe error code, or for a 400 a description of what's wrong with the request.Missing authenticationAPI key or JWT is missing, expired or invalid. See Auth.
statusCodeintegerThe HTTP status code. Always401.
errorstringThe name of the HTTP status. AlwaysForbidden.messageenumThe error code, or for a 400 a description of what's wrong with the request.ForbiddenThe resource doesn't exist, or your user or API key doesn't have permission to access it. See 403 Forbidden.
statusCodeintegerThe HTTP status code. Always403.
errorstringThe name of the HTTP status. AlwaysNot Found.messageenumThe error code, or for a 400 a description of what's wrong with the request.Not FoundThe route doesn't exist. Check the URL and HTTP method against the examples. See 404 Route Not Found.
statusCodeintegerThe HTTP status code. Always404.
errorstringThe name of the HTTP status. AlwaysToo Many Requests.messageenumThe error code, or for a 400 a description of what's wrong with the request.RATE_LIMIT_EXCEEDEDCentrapay API rate limits have been exceeded. See Rate Limits.
statusCodeintegerThe HTTP status code. Always429.
errorstringThe name of the HTTP status. AlwaysInternal Server Error.messageenumThe error code, or for a 400 a description of what's wrong with the request.An internal server error occurredSomething went wrong on our end. Retrying should solve the issue. See 5xx Server Error.
statusCodeintegerThe HTTP status code. Always500.
curl -X GET https://service.centrapay.com/api/asset-activities \-H 'x-api-key: <TOKEN>'{ "items": [ { "accountId": "6QXN8cq8XVwEJeYe3XH9fe", "activityNumber": "3", "activityType": "value-out", "amount": "1", "assetId": "ExVHwdGEFugJWVXWi4riNq", "bankAccountId": "7GEDRsP9cyB9fScBziSmJa", "createdAt": "2023-11-28T21:18:40.583Z", "createdBy": "crn::service:payments-api", "destAssetId": "WTNEcn8HHd2YgVsKRyvcPh", "destParty": "Dev Smoke Test Merchant", "kind": "payment", "ref": "C2kaVDzGaCpJLSbBfusu5W", "refType": "payment-request", "srcAssetId": "ExVHwdGEFugJWVXWi4riNq", "srcParty": "crn::user:46d42f1f-2816-4ce9-9781-fe93e8ebb0c6", "type": "transfer" }, { "accountId": "6QXN8cq8XVwEJeYe3XH9fe", "activityNumber": "2", "activityType": "value-out", "amount": "1", "assetId": "ExVHwdGEFugJWVXWi4riNq", "bankAccountId": "7GEDRsP9cyB9fScBziSmJa", "createdAt": "2023-11-28T03:37:23.145Z", "createdBy": "crn::service:payments-api", "destAssetId": "WTNEcn8HHd2YgVsKRyvcPh", "destParty": "Dev Smoke Test Merchant", "kind": "payment", "ref": "9qyT2gthTt4Dv7AX5U1zkY", "refType": "payment-request", "srcAssetId": "ExVHwdGEFugJWVXWi4riNq", "srcParty": "crn::user:46d42f1f-2816-4ce9-9781-fe93e8ebb0c6", "type": "transfer" }, { "accountId": "6QXN8cq8XVwEJeYe3XH9fe", "activityNumber": "1", "activityType": "created", "assetId": "WxPhZtcBsf19yXjo8gVv9Y", "createdAt": "2022-11-07T22:12:57.224Z", "createdBy": "crn::application:rhea", "status": "active" } ]}{ "error": "Bad Request", "message": "amount is required", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "Forbidden", "statusCode": 403}{ "error": "Not Found", "message": "Not Found", "statusCode": 404}{ "error": "Too Many Requests", "message": "RATE_LIMIT_EXCEEDED", "statusCode": 429}{ "error": "Internal Server Error", "message": "An internal server error occurred", "statusCode": 500}