Get Recurring Plan
Get a recurring plan execution plan for the store
Path Parameters
id string required
Query Parameters
with_previous_order boolean
仅供内部 Dashboard 使用
Example: false
Header Parameters
Nonce string required
random 16 bytes alphanumerics
Credential string required
Please follow the OpenAPI authentication section
Example: d900da8b-6e16-4a85-8a66-05d29ac53f24/20240501120123/Wonder-RSA-SHA256
Signature string required
Please follow the OpenAPI authentication section
Example: lM42cgyuLS98Dieydc8K2OD3KwYkOXibpV9pFvr/R0i/830M/FPKUKbav2UBBN3M3EdPk/PpvKQlvBNT+NbEg20CKuiDTZWDc3r7KiA1pdZsui/57XCVhC2s01W8jEM+G5lS362+p8+E0K6UKQDrJMyVpbDT31XSkSJIxae+uDi2nJr4DnIkemeU2LlNDRPPGe9NeX7z3B3N3LwIiQgKMyauPqAjro0UrZykQM9pv4UySRSU2cT8EcjQmyKxbzyuR2A47PyeodJvotlIthdfCHIxG52D06tpRJlRVbUdvxSg14bFiPbr3FwCvruZlbR15gOanJCqE4wp4fC8qEXXsg==
Content-type string required
Example: application/json
x-request-id string
Example: d900da8b-6e16-4a85-8a66-05d29ac53f24
x-i18n-lang string
from zh-HK, zh-CN, or en
Responses
- 200
Response Headers
application/json
Schema
Example (from schema)
Schema
code integer required
message string required
data object required
{
"code": 0,
"message": "string",
"data": {
"plan": {
"id": "string",
"name": "string",
"reference_number": "string",
"default_payment_token": "string",
"default_collection_method": "string",
"payment_retry_count": 0,
"payment_retry_day_period": 0,
"grace_period": 0,
"credit": 0,
"description": "string",
"created_at": "string",
"updated_at": "string",
"deleted_at": "string",
"recurring_cycles": [
{
"id": "string",
"state": "string",
"recurring_plan_id": "string",
"billing_count": 0,
"billing_count_created": 0,
"recurring_billing_config": {
"id": "string",
"billing_interval": "string",
"billing_type": "string",
"billing_month": 0,
"billing_day_of_month": 0,
"billing_proration_enabled": true,
"description": "string",
"created_at": "string",
"updated_at": "string",
"deleted_at": "string"
},
"recurring_items": [
{
"id": "string",
"label": "string",
"price": 0,
"quantity": 0,
"currency": "string",
"reference_id": "string",
"description": "string",
"created_at": "string",
"updated_at": "string",
"deleted_at": "string"
}
],
"billing_amount": 0,
"discount_amount": 0,
"discount_type": "string",
"previous_cycle": "string",
"next_cycle": "string",
"estimated_start_date": "string",
"start_date": "string",
"estimated_end_date": "string",
"end_date": "string",
"next_execute_time": "string",
"description": "string",
"created_at": "string",
"updated_at": "string",
"deleted_at ": "string"
}
],
"customer": {
"name": "string",
"email": "string",
"phone": "string",
"reference_number": "string",
"default_payment_method": "string",
"uuid": "string"
},
"current_order": {
"amount": 0,
"paid_total": 0,
"currency": "string",
"order_number": "string",
"reference_number": "string",
"state": "string",
"correspondence_state": "string",
"auth_code": "string",
"default_payment_token": "string",
"default_collection_method": "string"
},
"current_payment_link": "string"
}
}
}
GET /svc/payment/api/v1/openapi/recurring_payments/plan/:id
Request
Request
curl / cURL
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'
python / requests
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'
go / native
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'
nodejs / axios
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'
ruby / Net::HTTP
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'
csharp / RestSharp
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'
php / cURL
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'
java / OkHttp
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'
powershell / RestMethod
curl -L -X GET 'https://developer.wonder.today/svc/payment/api/v1/openapi/recurring_payments/plan/:id' \
-H 'Accept: application/json'