A SharedPaymentIssuedToken is a limited-use reference to a PaymentMethod that can be created with a secret key. When shared with another Stripe account (Seller), it enables that account to either process a payment on Stripe against a PaymentMethod that your Stripe account owns, or to forward a usable credential created against the originalPaymentMethod to then process the payment off-Stripe.
Attributes
- idstring
Unique identifier for the object.
- objectstring, value is "shared_payment.issued_token"
String representing the object’s type. Objects of the same type share the same value.
- createdtimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- deactivated_
at nullable timestampTime at which this SharedPaymentIssuedToken was deactivated.
- deactivated_
reason nullable enumThe reason why the SharedPaymentIssuedToken has been deactivated.
Possible enum valuesconsumedconsumedindicates that this token has been consumed due to hitting the allowed amount limit.expiredexpiredindicates that this token has expired.resolvedresolvedindicates that this token has been resolved by a seller.revokedrevokedindicates that this token has been revoked by the issuer. - livemodeboolean
If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - next_
action nullable objectIf present, describes the action required to make this
SharedPaymentIssuedTokenusable for payments. Present when the token is inrequires_state.action - payment_
method stringID of an existing PaymentMethod.
- risk_
details nullable objectRisk details of the SharedPaymentIssuedToken.
- seller_
details nullable objectSeller details of the SharedPaymentIssuedToken, including network_id and external_id.
- setup_
future_ nullable enumusage Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later.
Possible enum valueson_session Use
on_to reuse the payment method when your customer is present in the checkout flow.session - shared_
metadata nullable mapMetadata about the SharedPaymentIssuedToken.
- statusnullable enum
Status of this SharedPaymentIssuedToken, one of
active,requires_, oraction deactivated.Possible enum valuesactiveactiveindicates that this SharedPaymentIssuedToken is currently active and usable.deactivateddeactivatedindicates that this SharedPaymentIssuedToken has been deactivated.requires_action requires_indicates that this SharedPaymentIssuedToken requires additional action from the customer before it can be used.action - usage_
details nullable objectUsage details of the SharedPaymentIssuedToken
- usage_
limits nullable objectUsage limits of the SharedPaymentIssuedToken.
- use_
stripe_ nullable booleansdk Set to true when using Stripe.js, iOS, or Android client-side SDKs to handle next actions.
{ "id": "spt_1RgaZcFPC5QUO6ZCDVZuVA8q", "object": "shared_payment.issued_token", "livemode": false, "created": 1751500820, "deactivated_at": null, "deactivated_reason": null, "payment_method": "pm_1RgaZbFPC5QUO6ZCe2ekOCNX", "seller_details": { "external_id": null, "network_business_profile": "profile_test_61TU90nIeGjU7NNVXA6TU90m7ISQWsBxpcx9lASWWXTk" }, "setup_future_usage": null, "shared_metadata": {}, "status": "active", "usage_details": { "amount_captured": { "value": 0, "currency": "usd" } }, "usage_limits": { "currency": "usd", "expires_at": 1751587220, "max_amount": 1000 }}Creates a new SharedPaymentIssuedToken object
Parameters
- payment_
method stringRequiredThe PaymentMethod that is going to be shared by the SharedPaymentIssuedToken.
- seller_
details objectRequiredSeller details of the SharedPaymentIssuedToken, including network_id and external_id.
- usage_
limits objectRequiredLimits on how this SharedPaymentToken can be used.
- setup_
future_ enumusage Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later.
Possible enum valueson_session Use
on_to reuse the payment method when your customer is present in the checkout flow.session - shared_
metadata mapSet of key-value pairs that you can attach to the SharedPaymentIssuedToken. The values here are visible by default with the party that you share this SharedPaymentIssuedToken with.
Returns
Returns the newly created SharedPaymentIssuedToken
curl https://api.stripe.com/v1/shared_payment/issued_tokens \ -u "sk_test_BQokikJOvBiI2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:" \ -d payment_method={{PAYMENT_METHOD_ID}} \ -d "seller_details[network_business_profile]=profile_test_61TU90nIeGjU7NNVXA6TU90m7ISQWsBxpcx9lASWWXTk" \ -d "usage_limits[currency]=usd" \ -d "usage_limits[expires_at]=1751587220" \ -d "usage_limits[max_amount]=1000"{ "id": "spt_1RgaZcFPC5QUO6ZCDVZuVA8q", "object": "shared_payment.issued_token", "livemode": false, "created": 1751500820, "deactivated_at": null, "deactivated_reason": null, "payment_method": "pm_1RgaZbFPC5QUO6ZCe2ekOCNX", "seller_details": { "external_id": null, "network_business_profile": "profile_test_61TU90nIeGjU7NNVXA6TU90m7ISQWsBxpcx9lASWWXTk" }, "setup_future_usage": null, "shared_metadata": {}, "status": "active", "usage_details": { "amount_captured": { "value": 0, "currency": "usd" } }, "usage_limits": { "currency": "usd", "expires_at": 1751587220, "max_amount": 1000 }}