Skip to content
Asset Programs

Create Asset Programexperimental

POST/api/asset-programs

This endpoint allows you to create an Asset Program.

Request body

  • accountIdrequired string
    The Account that will own the Asset Program.
  • assetTypesrequired array of strings
    The list of Asset Types that are a part of the Asset Program.
  • collectionIdsrequired array of strings
    The list of collection ids associated with the Asset Program.
  • mediaUploadIdoptional string
    The id of the Media Upload image of the Asset Program.
  • namerequired string
    The display name of the Asset Program.
  • privacyPolicyUrlrequired string
    URL to the Asset Program's privacy policy document.
  • termsOfServiceUrlrequired string
    URL to the Asset Program's terms of service document.

Responses

Request
curl -X POST https://service.centrapay.com/api/asset-programs \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"accountId": "Jaim1Cu1Q55uooxSens6yk",
"assetTypes": [
"payap-debit"
],
"collectionIds": [
"c_Xv990BzkgfoDS7bBls50pd"
],
"mediaUploadId": "8aoMfscvtuewsuJzmzBzAs",
"name": "My Asset Program",
"privacyPolicyUrl": "https://example.com/privacy",
"termsOfServiceUrl": "https://example.com/terms"
}'