• Prepaid

    In locale
  • Prepaid

    In locale

Cards error codes

Note

This section is currently work in progress.

The following table lists the possible error codes returned on Fusion’s Cards APIs.

Bulk card order

Endpoint URI

POST/api/v1/ifi/{ifi_id}/cards/orders

Error codes

HTTP Status Code Error Code Description
200 {request is sent back in response}
400 BAD_REQUEST
401 UNAUTHORIZED
500 INTERNAL_SERVER_ERROR

message: Order Request Mismatch, quantity must be present, cardSkuID must be present, orderID must be present, deliveryAddress must be present

Dispatch card

Endpoint URI

POST/api/v1/ifi/{ifi_id}/cards/<<FormFactorID>>/dispatch

Error codes

HTTP Status Code Error Code Description
200 {request is sent back in response}
400 BAD_REQUEST
401 UNAUTHORIZED
500 INTERNAL_SERVER_ERROR

message: Order Summary Not Found

message: Error Fetching Data for ClientOrderID

message: Unprocessable entity

Associate Form Factor to resource

Endpoint URI

POST/api/v1/ifi/{ifi_id}/resources/{resource_id}/form_factors

Error codes

HTTP Status Code Error Code Description
200 InsertFormFactorResponse Object
400 BAD_REQUEST
401 UNAUTHORIZED
500 INTERNAL_SERVER_ERROR

Card state changes

Endpoint URI

PATCH/api/v1/ifi/{{ifi_id}}/resources/{{resource_id}}/form_factors/{{form_factor_id}}

Error codes

HTTP Status Code Error Code Description
200 UpdateFormFactorRequest Object
400 BAD_REQUEST
401 UNAUTHORIZED
500 INTERNAL_SERVER_ERROR

Get Card

Sample Request

1
     cardsService.getCard(cardID, listener)

Error codes

HTTP Status Code Error Code Description
200 CardView Object
400 Signature is invalid
401 UNAUTHORIZED
500 card not found {cardId}

Set Card PIN

Sample Request

1
     cardsService.setPin(newPin, cardID, listener)

Error codes

HTTP Status Code Error Code Description
200 Empty Response
401 UNAUTHORIZED
500 INTERNAL_SERVER_ERROR