GET
/simulations/{simulation_id}
Requires notification_simulation.read
permission.
Path parameters
simulation_idstringrequired
Paddle ID of the simulation entity to work with.
Response (200)
datarequired
Represents a simulation entity.
Single event
Single event simulations play a single event.
idstringrequired
Example:
ntfsim_01ghbkd0frb9k95cnhwd1bxpvkUnique Paddle ID for this simulation, prefixed with
ntfsim_.Pattern:
^ntfsim_[a-z\d]{26}$statusstringrequired
Default:
activeWhether this entity can be used in Paddle.
Values
activeEntity is active and can be used.archivedEntity is archived, so can't be used.
notification_setting_idstringrequired
Example:
ntfset_01gt21c5pdx9q1e4mh1xrsjjn6Paddle ID of the notification setting where this simulation is sent, prefixed with
ntfset_.Pattern:
^ntfset_[a-z\d]{26}$namestringrequired
Name of this simulation.
typestringrequired
Single event sent for this simulation, in the format
entity.event_type.Values
address.createdAnaddress.createdevent.address.importedAnaddress.importedevent.address.updatedAnaddress.updatedevent.adjustment.createdAnadjustment.createdevent.adjustment.updatedAnadjustment.updatedevent.
+ Show all values− Hide values
api_key.createdAnapi_key.createdevent.api_key.expiredAnapi_key.expiredevent.api_key.expiringAnapi_key.expiringevent.api_key.revokedAnapi_key.revokedevent.api_key.updatedAnapi_key.updatedevent.api_key_exposure.createdAnapi_key_exposure.createdevent.business.createdAbusiness.createdevent.business.importedAbusiness.importedevent.business.updatedAbusiness.updatedevent.client_token.createdAclient_token.createdevent.client_token.revokedAclient_token.revokedevent.client_token.updatedAclient_token.updatedevent.customer.createdAcustomer.createdevent.customer.importedAcustomer.importedevent.customer.updatedAcustomer.updatedevent.discount.createdAdiscount.createdevent.discount.importedAdiscount.importedevent.discount.updatedAdiscount.updatedevent.discount_group.createdAdiscount_group.createdevent.discount_group.updatedAdiscount_group.updatedevent.payment_method.savedApayment_method.savedevent.payment_method.deletedApayment_method.deletedevent.payout.createdApayout.createdevent.payout.paidApayout.paidevent.price.createdAprice.createdevent.price.importedAprice.importedevent.price.updatedAprice.updatedevent.product.createdAproduct.createdevent.product.importedAproduct.importedevent.product.updatedAproduct.updatedevent.report.createdAreport.createdevent.report.updatedAreport.updatedevent.subscription.activatedAsubscription.activatedevent.subscription.canceledAsubscription.canceledevent.subscription.createdAsubscription.createdevent.subscription.importedAsubscription.importedevent.subscription.past_dueAsubscription.past_dueevent.subscription.pausedAsubscription.pausedevent.subscription.resumedAsubscription.resumedevent.subscription.trialingAsubscription.trialingevent.subscription.updatedAsubscription.updatedevent.transaction.billedAtransaction.billedevent.transaction.canceledAtransaction.canceledevent.transaction.completedAtransaction.completedevent.transaction.createdAtransaction.createdevent.transaction.paidAtransaction.paidevent.transaction.past_dueAtransaction.past_dueevent.transaction.payment_failedAtransaction.payment_failedevent.transaction.readyAtransaction.readyevent.transaction.revisedAtransaction.revisedevent.transaction.updatedAtransaction.updatedevent.
payloadobject | nullrequired
Simulation payload. A JSON object that matches the schema for an event type.
confignullrequired
Configuration for scenario simulations.
null for single events.last_run_atstring (date-time) | nullrequired
Example:
2024-10-12T07:20:50.52ZRFC 3339 datetime string.
created_atstring (date-time)required
Example:
2024-10-12T07:20:50.52ZRFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_atstring (date-time)required
Example:
2024-10-13T07:20:50.52ZRFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
Scenario
Scenario simulations play all events sent for a subscription lifecycle event.
idstringrequired
Example:
ntfsim_01ghbkd0frb9k95cnhwd1bxpvkUnique Paddle ID for this simulation, prefixed with
ntfsim_.Pattern:
^ntfsim_[a-z\d]{26}$statusstringrequired
Default:
activeWhether this entity can be used in Paddle.
Values
activeEntity is active and can be used.archivedEntity is archived, so can't be used.
notification_setting_idstringrequired
Example:
ntfset_01gt21c5pdx9q1e4mh1xrsjjn6Paddle ID of the notification setting where this simulation is sent, prefixed with
ntfset_.Pattern:
^ntfset_[a-z\d]{26}$namestringrequired
Name of this simulation.
typestringrequired
Scenario for this simulation. Scenario simulations play all events sent for a subscription lifecycle event.
Values
subscription_creationSimulates all events sent when a subscription is created.subscription_renewalSimulates all events sent when a subscription is renewed.subscription_pauseSimulates all events sent when a subscription is paused.subscription_resumeSimulates all events sent when a subscription is resumed.subscription_cancellationSimulates all events sent when a subscription is canceled.
payloadnullrequired
Simulation payload.
null for scenarios.configobject | nullrequired
Configuration for this scenario simulation. Determines which granular flow is simulated and what entities are used to populate webhook payloads with.
subscription_cancellationobject | nullrequired
Configuration for subscription canceled simulations.
entitiesobjectrequired
Adds details of existing Paddle entities to webhook payloads sent in the simulation.
subscription_idstring | nullrequired
Example:
sub_01h04vsc0qhwtsbsxh3422wjs4Unique Paddle ID for this subscription entity, prefixed with
sub_.Pattern:
^sub_[a-z\d]{26}$optionsobjectrequired
Options that determine which webhooks are sent as part of a simulation.
effective_fromstringrequired
Default:
immediatelyDetermines which webhooks are sent based on when the subscription is paused or canceled. If omitted, defaults to
immediately.Values
next_billing_periodSimulates as if the subscription cancels at the start of next billing period.immediatelySimulates as if the subscription cancels immediately.
has_past_due_transactionbooleanrequired
Default:
falseWhether a simulated subscription has a past due transaction (
true) or not (false), which determines whether events occur for canceling past due transactions. If omitted, defaults to false.subscription_creationobject | nullrequired
Configuration for subscription creation simulations.
entitiesobjectrequired
Adds details of existing Paddle entities to webhook payloads sent in the simulation.
customer_idstring | nullrequired
Example:
ctm_01grnn4zta5a1mf02jjze7y2ysUnique Paddle ID for this customer entity, prefixed with
ctm_.Pattern:
^ctm_[a-z\d]{26}$address_idstring | nullrequired
Example:
add_01gm302t81w94gyjpjpqypkzkfUnique Paddle ID for this address entity, prefixed with
add_.Pattern:
^add_[a-z\d]{26}$business_idstring | nullrequired
Example:
biz_01grrebrzaee2qj2fqqhmcyzajUnique Paddle ID for this business entity, prefixed with
biz_.Pattern:
^biz_[a-z\d]{26}$payment_method_idstring | nullrequired
Example:
paymtd_01hkm9xwqpbbpr1ksmvg3sx3v1Unique Paddle ID for this payment method entity, prefixed with
paymtd_.Pattern:
^paymtd_[a-z\d]{26}$discount_idstring | nullrequired
Example:
dsc_01gv5kpg05xp104ek2fmgjwttfUnique Paddle ID for this discount, prefixed with
dsc_.Pattern:
^dsc_[a-z\d]{26}$transaction_idstring | nullrequired
Example:
txn_01h04vsbhqc62t8hmd4z3b578cUnique Paddle ID for this transaction entity, prefixed with
txn_.Pattern:
^txn_[a-z\d]{26}$itemsarray | nullrequired
Items to include on the simulated subscription. Only existing products and prices can be simulated. Non-catalog items aren't supported. At least one recurring price must be provided.
quantityintegerrequired
Example:
5Quantity to bill for.
Min: 1
price_idstringrequired
Example:
pri_01gsz8z1q1n00f12qt82y31smhPaddle ID of an an existing catalog price to bill for.
Pattern:
^pri_[a-z\d]{26}$optionsobjectrequired
Options that determine which webhooks are sent as part of a simulation.
customer_simulated_asstringrequired
Default:
newDetermines which webhooks are sent based on whether a new or existing customer subscribes, and how their details are entered if they're an existing customer. If omitted, defaults to
new.Values
newSimulates as if a new customer enters their details at checkout and Paddle creates a new customer.existing_email_matchedSimulates as if an existing customer enters their details at checkout. Paddle matches it to an existing customer based on the email supplied and creates a new address for that customer.existing_details_prefilledSimulates as if existing customer details are prefilled at checkout by passing them to Paddle.js.
business_simulated_asstringrequired
Default:
not_providedDetermines which webhooks are sent based on whether a new, existing, or no business was provided. If omitted, defaults to
not_provided.Values
not_providedSimulates as if no business is provided.newSimulates as if a customer enters their business details at checkout and Paddle creates a new business.existing_details_prefilledSimulates as if an existing business is prefilled at checkout by passing it to Paddle.js.
discount_simulated_asstringrequired
Default:
not_providedDetermines which webhooks are sent based on whether a discount is used and how it's entered. If omitted, defaults to
not_provided.Values
not_providedSimulates as if no discount is entered.prefilledSimulates as if a discount is prefilled at checkout by passing it to Paddle.js. Requiresentities.discount_id.entered_by_customerSimulates as if a customer entered a discount at checkout. Requiresentities.discount_id.
subscription_pauseobject | nullrequired
Configuration for subscription paused simulations.
entitiesobjectrequired
Adds details of existing Paddle entities to webhook payloads sent in the simulation.
subscription_idstring | nullrequired
Example:
sub_01h04vsc0qhwtsbsxh3422wjs4Unique Paddle ID for this subscription entity, prefixed with
sub_.Pattern:
^sub_[a-z\d]{26}$optionsobjectrequired
Options that determine which webhooks are sent as part of a simulation.
effective_fromstringrequired
Default:
immediatelyDetermines which webhooks are sent based on when the subscription is paused or canceled. If omitted, defaults to
immediately.Values
next_billing_periodSimulates as if the subscription pauses at the start of next billing period.immediatelySimulates as if the subscription pauses immediately.
has_past_due_transactionbooleanrequired
Default:
falseWhether a simulated subscription has a past due transaction (
true) or not (false), which determines whether events occur for canceling past due transactions. If omitted, defaults to false.subscription_renewalobject | nullrequired
Configuration for subscription renewed simulations.
entitiesobjectrequired
Adds details of existing Paddle entities to webhook payloads sent in the simulation.
subscription_idstring | nullrequired
Example:
sub_01h04vsc0qhwtsbsxh3422wjs4Unique Paddle ID for this subscription entity, prefixed with
sub_.Pattern:
^sub_[a-z\d]{26}$optionsobjectrequired
Options that determine which webhooks are sent as part of a simulation.
payment_outcomestringrequired
Default:
successDetermines which webhooks are sent based on the outcome of the payment. If omitted, defaults to
success.Values
successSimulates as if the payment for the subscription is successful.recovered_existing_payment_methodSimulates as if the payment for the subscription fails initially and the payment is recovered when retrying the existing payment method.recovered_updated_payment_methodSimulates as if the payment for the subscription fails initially and the customer updates their payment method to successfully pay.failedSimulates as if the payment for the subscription is unsuccessful after all payment recovery attempts are exhausted.
dunning_exhausted_actionstring | nullrequired
Determines which webhooks are sent based on what happens to the subscription when payment recovery attempts are exhausted. Only applies when
payment_outcome is failed. If omitted, defaults to null.Values
subscription_pausedSimulates as if the subscription is paused after all payment recovery attempts are exhausted.subscription_canceledSimulates as if the subscription is paused after all payment recovery attempts are exhausted.
subscription_resumeobject | nullrequired
Configuration for subscription resumed simulations.
entitiesobjectrequired
Adds details of existing Paddle entities to webhook payloads sent in the simulation.
subscription_idstring | nullrequired
Example:
sub_01h04vsc0qhwtsbsxh3422wjs4Unique Paddle ID for this subscription entity, prefixed with
sub_.Pattern:
^sub_[a-z\d]{26}$optionsobjectrequired
Options that determine which webhooks are sent as part of a simulation.
payment_outcomestringrequired
Default:
successDetermines which webhooks are sent based on the outcome of the payment. If omitted, defaults to
success.Values
successSimulates as if the payment for the subscription is successful.recovered_existing_payment_methodSimulates as if the payment for the subscription fails initially and the payment is recovered when retrying the existing payment method.recovered_updated_payment_methodSimulates as if the payment for the subscription fails initially and the customer updates their payment method to successfully pay.failedSimulates as if the payment for the subscription is unsuccessful after all payment recovery attempts are exhausted.
dunning_exhausted_actionstring | nullrequired
Determines which webhooks are sent based on what happens to the subscription when payment recovery attempts are exhausted. Only applies when
payment_outcome is failed. If omitted, defaults to null.Values
subscription_pausedSimulates as if the subscription is paused after all payment recovery attempts are exhausted.subscription_canceledSimulates as if the subscription is paused after all payment recovery attempts are exhausted.
last_run_atstring (date-time) | nullrequired
Example:
2024-10-12T07:20:50.52ZRFC 3339 datetime string.
created_atstring (date-time)required
Example:
2024-10-12T07:20:50.52ZRFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_atstring (date-time)required
Example:
2024-10-13T07:20:50.52ZRFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
metaobjectrequired
Information about this response.
request_idstringrequired
Example:
b15ec92e-8688-40d4-a04d-f44cbec93355Unique ID for the request relating to this response. Provide this when contacting Paddle support about a specific request.
{ "data": { "id": "ntfsim_01j82d9tc19c67jds5vzbzjcns", "notification_setting_id": "ntfset_01j82d983j814ypzx7m1fw2jpz", "name": "Subscription created using pricing page on website", "type": "subscription_creation", "status": "active", "payload": null, "config": { "subscription_cancellation": null, "subscription_creation": { "entities": { "customer_id": null, "address_id": null, "business_id": null, "payment_method_id": null, "discount_id": null, "transaction_id": null, "items": null }, "options": { "customer_simulated_as": "existing_email_matched", "business_simulated_as": "not_provided", "discount_simulated_as": "not_provided" } }, "subscription_pause": null, "subscription_renewal": null, "subscription_resume": null }, "last_run_at": null, "created_at": "2024-09-18T11:11:55.265125Z", "updated_at": "2024-09-18T11:54:18.543265Z" }, "meta": { "request_id": "3db61fbc-dde6-4a33-9ac1-c2c781e569fc" }}