Perform a business operation related to an identity token
Use this endpoint to ask the Bango Platform to perform a business operation related to an identity token. A business operation might be an update to the token, or a task associated with the token.
API consumers request business operations by sending actions to this endpoint. An action specifies the business operation. The Bango Platform decides whether the business operation is permitted, and if so it performs the business operation. This might result in a change to the resource’s properties, and might cause a side effect.
400 response error codes:
invalid-jsonif the request body isn’t valid JSON formatmissing-parameteriftypeis not present in the request bodyinvalid-parameteriftypeis not a valid action typemissing-parameterifpayloadis required and not presentinvalid-parameterifpayloadis not the expected shape for the type of action (which may mean thatpayloadis missing required parameters or some parameters are invalid: check the documentation to find out the expected payload shape for each action type)
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
Globally unique namespace ID. These IDs are opaque, not guessable, and not sequential.
Bango provides each Bango partner with a unique set of resource URIs. All resource URI paths start with /ns/{nsid}, where {nsid} is the namespace ID. No other Bango partner shares this namespace. Partner credentials permit access only to URIs with this namespace.
"673c74de-ce5b-4f79-9851-2544d1d836cb"
Globally unique resource ID. These IDs are opaque, not guessable, and not sequential.
Each individual resource in a partner's namespace has a unique identifier: this is the identifier immediately after the resource type in the URI path.
For example, in the URI /ns/673c74de-ce5b-4f79-9851-2544d1d836cb/elephants/581b2e40-741c-4683-ae66-46c9fe6f4d5e:
- The namespace id is
673c74de-ce5b-4f79-9851-2544d1d836cbde elephantsindicates the resource type iselephant- The resource id is
581b2e40-741c-4683-ae66-46c9fe6f4d5e
Every resource has a read-only property rid that contains the resource ID, for convenience.
"581b2e40-741c-4683-ae66-46c9fe6f4d5e"
Body
A request to perform a business operation related to an identity token. A request specifies an action type and any action-specific data (the payload). The response is always the latest version of the identity token held in the Bango Platform.
The following action types are available. See each action type schema for detailed information.
CANCEL: A request to permanently disable a payment instrument token, with no possibility of undoFETCH_ELIGIBILITY: A request to fetch eligibility information for the token from the downstream payment providerVALIDATE_PASSPHRASE: A request to validate passphrase for the token from the downstream payment providerGET_ACCOUNT: A request to retrieve the account information associated with a PIT
- CANCEL action
- FETCH_ELIGIBILITY action
- VALIDATE_PASSPHRASE action
- GET_ACCOUNT action
A request to permanently disable a payment instrument token, with no possibility of undo.
If the payment instrument token is already canceled, returns HTTP 409 with error code pit-already-canceled.
Response
The updated resource.
- Identity token resource - CANCEL selected
- Identity token resource - FETCH_ELIGIBILITY selected
- Identity token resource- VALIDATE_PASSPHRASE selected
- Identity token resource- GET_ACCOUNT selected
An identity token resource when CANCEL has been selected.
Globally unique resource ID. These IDs are opaque, not guessable, and not sequential.
Each individual resource in a partner's namespace has a unique identifier: this is the identifier immediately after the resource type in the URI path.
For example, in the URI /ns/673c74de-ce5b-4f79-9851-2544d1d836cb/elephants/581b2e40-741c-4683-ae66-46c9fe6f4d5e:
- The namespace id is
673c74de-ce5b-4f79-9851-2544d1d836cbde elephantsindicates the resource type iselephant- The resource id is
581b2e40-741c-4683-ae66-46c9fe6f4d5e
Every resource has a read-only property rid that contains the resource ID, for convenience.
"581b2e40-741c-4683-ae66-46c9fe6f4d5e"
RFC 3339 datetime of the last update to this resource
"2022-12-21T08:59:32Z"
The type of token. Code can use type to infer the schema for the rest of the resource.
For now, only payment-instrument-token is supported. Other values may be supported in future.
The token state. Tokens of type payment-instrument-token are always one of:
active: may be used for payments, if eligiblecanceled: may not be used for payments
The only permitted state transition is from active to canceled. To make this transition, send a CANCEL action. It is not possible to transition from canceled back to active.
active, canceled Friendly unique identifier for the merchant partner.
Internally, corresponds to the accountKey property in the route-config-server's partner_namespaces table.
2 - 50"AUSSIE_APPS"
Friendly unique identifier for the payment provider.
Internally, corresponds to the accountKey property in the route-config-server's partner_namespaces table.
2 - 50"OGNABTEL"
Information about the token related to payment processing.
discovering: The Bango Platform is currently waiting for a response from the payment provider about the tokenenabled: Authorized partners can use the token to process paymentsnot-enabled: The payment provider has not enabled the token to process paymentsclosed: The payment provider has decided the token can no longer process payments (this is permanent)barred: The payment provider has suspended or barred the user associated with the token (this may be temporary)unknown: The payment provider has not provided information about this tokenunsupported: The payment provider does not support requests for information about this token
discovering, enabled, not-enabled, closed, barred, unknown, unsupported The account type allocated by the payment provider for an end user's account.
prepaid, postpaid, unknown Customer’s latest spending limit profile
Properties that are specific to a user

