# Simulate card production state change

Simulates a card production status change in the sandbox environment.

{% admonition type="warning" %}
Please ensure that you have created a physical card order with KIOSK_COLLECTION delivery method and that you produce the card before calling this endpoint to simulate various card production statuses.
{% /admonition %}

Endpoint: POST /v1/simulation/spend/profiles/{profileId}/cards/{cardToken}/production
Security: UserToken

## Path parameters:

  - `profileId` (integer, required)
    The profile ID.

  - `cardToken` (string, required)
    The card token.

## Request fields (application/json):

  - `status` (string)
    The intended production status of the card.
    Enum: "PRODUCED", "PRODUCTION_ERROR"

  - `errorCode` (string)
    The [error code](/api-reference/card-kiosk-collection/cardkioskcollectionproduce) to simulate. This field should be set only if the status is PRODUCTION_ERROR.


## Response 200 fields
