Grant Request
POST /
Make a new grant request
Request Body
object
object
A description of the rights associated with this access token.
object
The type of resource request as a string. This field defines which other fields are allowed in the request object.
The types of actions the client instance will take at the RS as an array of strings.
A string identifier indicating a specific resource at the RS.
object
The type of resource request as a string. This field defines which other fields are allowed in the request object.
The types of actions the client instance will take at the RS as an array of strings.
A string identifier indicating a specific resource at the RS.
Open Payments specific property that defines the limits under which outgoing payments can be created.
object
The URL of the incoming payment that is being paid.
All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.
object
The value is an unsigned 64-bit integer amount, represented as a string.
The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
The scale of amounts denoted in the corresponding asset code.
All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.
object
The value is an unsigned 64-bit integer amount, represented as a string.
The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
The scale of amounts denoted in the corresponding asset code.
Open Payments specific property that defines the limits under which outgoing payments can be created.
object
The URL of the incoming payment that is being paid.
All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.
object
The value is an unsigned 64-bit integer amount, represented as a string.
The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
The scale of amounts denoted in the corresponding asset code.
All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.
object
The value is an unsigned 64-bit integer amount, represented as a string.
The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
The scale of amounts denoted in the corresponding asset code.
object
The type of resource request as a string. This field defines which other fields are allowed in the request object.
The types of actions the client instance will take at the RS as an array of strings.
Wallet address of the client instance that is making this request.
When sending a non-continuation request to the AS, the client instance MUST identify itself by including the client field of the request and by signing the request.
A JSON Web Key Set document, including the public key that the client instance will use to protect this request and any continuation requests at the AS and any user-facing information about the client instance used in interactions, MUST be available at the wallet address + /jwks.json
url.
If sending a grant initiation request that requires RO interaction, the wallet address MUST serve necessary client display information.
The client instance declares the parameters for interaction methods that it can support using the interact field.
object
Indicates how the client instance can start an interaction.
Indicates how the client instance can receive an indication that interaction has finished at the AS.
object
The callback method that the AS will use to contact the client instance.
Indicates the URI that the AS will either send the RO to after interaction or send an HTTP POST request.
Unique value to be used in the calculation of the “hash” query parameter sent to the callback URI, must be sufficiently random to be unguessable by an attacker. MUST be generated by the client instance as a unique value for this request.
Examples
Responses
200
OK
object
object
The URI to direct the end user to.
Unique key to secure the callback.
If the AS determines that the request can be continued with additional requests, it responds with the continue field.
object
A unique access token for continuing the request, called the “continuation access token”.
object
The URI at which the client instance can make continuation requests.
The amount of time in integer seconds the client instance MUST wait after receiving this request continuation response and calling the continuation URI.
object
A single access token or set of access tokens that the client instance can use to call the RS on behalf of the RO.
object
The value of the access token as a string. The value is opaque to the client instance. The value SHOULD be limited to ASCII characters to facilitate transmission over HTTP headers within other protocols without requiring additional encoding.
The management URI for this access token. This URI MUST NOT include the access token value and SHOULD be different for each access token issued in a request.
The number of seconds in which the access will expire. The client instance MUST NOT use the access token past this time. An RS MUST NOT accept an access token past this time.
A description of the rights associated with this access token.
object
The type of resource request as a string. This field defines which other fields are allowed in the request object.
The types of actions the client instance will take at the RS as an array of strings.
A string identifier indicating a specific resource at the RS.
object
The type of resource request as a string. This field defines which other fields are allowed in the request object.
The types of actions the client instance will take at the RS as an array of strings.
A string identifier indicating a specific resource at the RS.
Open Payments specific property that defines the limits under which outgoing payments can be created.
object
The URL of the incoming payment that is being paid.
All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.
object
The value is an unsigned 64-bit integer amount, represented as a string.
The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
The scale of amounts denoted in the corresponding asset code.
All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.
object
The value is an unsigned 64-bit integer amount, represented as a string.
The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
The scale of amounts denoted in the corresponding asset code.
Open Payments specific property that defines the limits under which outgoing payments can be created.
object
The URL of the incoming payment that is being paid.
All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.
object
The value is an unsigned 64-bit integer amount, represented as a string.
The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
The scale of amounts denoted in the corresponding asset code.
All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.
object
The value is an unsigned 64-bit integer amount, represented as a string.
The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
The scale of amounts denoted in the corresponding asset code.
object
The type of resource request as a string. This field defines which other fields are allowed in the request object.
The types of actions the client instance will take at the RS as an array of strings.
If the AS determines that the request can be continued with additional requests, it responds with the continue field.
object
A unique access token for continuing the request, called the “continuation access token”.
object
The URI at which the client instance can make continuation requests.
The amount of time in integer seconds the client instance MUST wait after receiving this request continuation response and calling the continuation URI.
Examples
400
Bad Request
401
Unauthorized
500
Internal Server Error