Link

The subscription attempt object

A subscription attempt will create when some calls preview API.

Attributes
id String
Id of the subscription attemptd
metadata Object
metadata for the subscription attempt
subscriber_id Integer
Id of the subscriber
status String
status of subscription attempt
subscription_plan_id Integer
Id of the subscription plan
attempt_token String
unique attempt token
error_messages String
error message if any
payment_type String
payment type
{
  "id"=>100391,
  "metadata"=>{"mobile_number"=>""},
  "subscriber_id"=>103050,
  "status"=>"success",
  "subscription_plan_id"=>36,
  "attempt_token"=>"ATTEMPT_TOKEN",
  "error_messages"=>nil,
  "payment_type"=>"razorpay_recurring",
  "details"=>
	 {
	   "subscription_type"=>"standard",
		  "subscription_plan_id"=>"36",
		  "payment"=>
			 {
				  "payment_type"=>"razorpay_recurring",
				  "amount_cents"=>"1000",
				  "amount_currency"=>"INR"
			 },
		  "metadata"=> {"mobile_number"=>""},
		  "dynamic_assets"=>
		    [{
				  "id"=>"story-id",
				  "title"=>"testing",
				  "slug"=>"/test"
			   }]
	 },
  "created_at"=>Mon, 12 Jul 2021 11:51:12 UTC +00:00,
  "updated_at"=>Mon, 12 Jul 2021 11:51:46 UTC +00:00,
  "campaign_id"=>nil,
  "external_reference_id"=>"EXTERNAL_PAYMENT_ID",
  "payment_links"=>{},
  "custom_message"=>nil,
  "gifter_id"=>nil
}