Freigegebene Grußkarten senden
send_cardMails the greeting cards of a batch from prepare_card. It costs the approved total. It cannot be undone after printing starts. Use it only after the user approved the picture, the message, each recipient and the total price, in a later answer than prepare_card. Give batch_id, batch_sha256, confirmed_count, recipient_names and confirmed_price_cents. Refuses a changed batch, a changed price and a second send. If distinct_messages is more than 1, give confirmed_distinct_messages. ORDER_REQUIRED: give the user the order_url. Do not call send_card again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | The batch_id from prepare_card. | |
| batch_sha256 | Yes | The batch_sha256 from prepare_card. | |
| allow_duplicate | No | Set to true only if the user clearly wants a second card to a recipient who got the same card before. | |
| confirmed_count | Yes | The number of cards that the user approved. | |
| recipient_names | Yes | The name of each recipient that the user approved, as in prepare_card. | |
| confirmed_price_cents | Yes | The total price in cents that the user approved: price.amount_cents from prepare_card. | |
| confirmed_distinct_messages | No | The number of different messages that the user saw and approved: distinct_messages from prepare_card. Required when it is more than 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| batch_id | No | ||
| transaction_state | Yes |