Content
Spoonity allows merchants to set custom terms of service and privacy policies which can be retrieved to be shared with end-customers.
GET/vendor/content/terms-of-service
Retrieve terms of service
This request retrieves the terms of service content set by a vendor.
Query parameters
- Name
vendor- Type
- integer
- Description
The internal reference ID of the vendor who's content is being retrieved.
Response attributes
- Name
title- Type
- string
- Description
The title of the terms of service.
- Name
content- Type
- string
- Description
The content of the terms of service.
Request
GET
/vendor/content/terms-of-servicecurl -G https://api.spoonity.com/vendor/content/terms-of-service?vendor={vendor_id}
Response
{
"object": "vendor_content",
"title": "Terms of Service",
"content": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam vestibulum arcu vitae urna rutrum eleifend. Vivamus varius pretium gravida. Nunc sit amet felis sem. Sed commodo nisi ligula, et hendrerit ante fermentum ut.</p>",
"version": null
}
GET/vendor/content/privacy-policy
Retrieve privacy policy
This request retrieves the privacy policy content set by a vendor.
Query parameters
- Name
vendor- Type
- integer
- Description
The internal reference ID of the vendor who's content is being retrieved.
Response attributes
- Name
title- Type
- string
- Description
The title of the privacy policy.
- Name
content- Type
- string
- Description
The content of the privacy policy.
Request
GET
/vendor/content/privacy-policycurl -G https://api.spoonity.com/vendor/content/privacy-policy?vendor={vendor_id}
Response
{
"object": "vendor_content",
"title": "Privacy Policy",
"content": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam vestibulum arcu vitae urna rutrum eleifend. Vivamus varius pretium gravida. Nunc sit amet felis sem. Sed commodo nisi ligula, et hendrerit ante fermentum ut.</p>",
"version": null
}