{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/payments:paypal-vault/customer-payment-tokens-get":{"get":{"operationId":"payments_paypal_vault_customer_payment_tokens_get","summary":"List all payment tokens","description":"GET /v3/vault/payment-tokens","tags":["payments"],"parameters":[{"name":"customer_id","in":"query","required":true,"description":"A unique identifier representing a specific customer in merchant's/partner's system or records.","schema":{"type":"string","description":"A unique identifier representing a specific customer in merchant's/partner's system or records."}},{"name":"page_size","in":"query","required":false,"description":"A non-negative, non-zero integer indicating the maximum number of results to return at one time.","schema":{"type":"integer","default":5,"description":"A non-negative, non-zero integer indicating the maximum number of results to return at one time."}},{"name":"page","in":"query","required":false,"description":"A non-negative, non-zero integer representing the page of the results.","schema":{"type":"integer","default":1,"description":"A non-negative, non-zero integer representing the page of the results."}},{"name":"total_required","in":"query","required":false,"description":"A boolean indicating total number of items (total_items) and pages (total_pages) are expected to be returned in the response.","schema":{"type":"boolean","default":false,"description":"A boolean indicating total number of items (total_items) and pages (total_pages) are expected to be returned in the response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/payments:paypal-vault/payment-tokens-create":{"post":{"operationId":"payments_paypal_vault_payment_tokens_create","summary":"Create payment token for a given payment source","description":"POST /v3/vault/payment-tokens","tags":["payments"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"PayPal-Request-Id":{"type":"string","description":"The server stores keys for 3 hours."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/payments:paypal-vault/payment-tokens-get":{"get":{"operationId":"payments_paypal_vault_payment_tokens_get","summary":"Retrieve a payment token","description":"GET /v3/vault/payment-tokens/{id}","tags":["payments"],"parameters":[{"name":"id","in":"query","required":true,"description":"ID of the setup token.","schema":{"type":"string","description":"ID of the setup token."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/payments:paypal-vault/payment-tokens-delete":{"post":{"operationId":"payments_paypal_vault_payment_tokens_delete","summary":"Delete payment token","description":"DELETE /v3/vault/payment-tokens/{id}","tags":["payments"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"ID of the setup token."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/payments:paypal-vault/setup-tokens-create":{"post":{"operationId":"payments_paypal_vault_setup_tokens_create","summary":"Create a setup token","description":"POST /v3/vault/setup-tokens","tags":["payments"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"PayPal-Request-Id":{"type":"string","description":"The server stores keys for 3 hours."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/payments:paypal-vault/setup-tokens-get":{"get":{"operationId":"payments_paypal_vault_setup_tokens_get","summary":"Retrieve a setup token","description":"GET /v3/vault/setup-tokens/{id}","tags":["payments"],"parameters":[{"name":"id","in":"query","required":true,"description":"ID of the setup token.","schema":{"type":"string","description":"ID of the setup token."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}