naftiko: 1.0.0-alpha2 info: label: eBay Account API — Return_policy description: 'eBay Account API — Return_policy. 6 operations. Lead operation: Return_policy. Self-contained Naftiko capability covering one Ebay business surface.' tags: - Ebay - Return_policy created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: EBAY_API_KEY: EBAY_API_KEY capability: consumes: - type: http namespace: account-return-policy baseUri: https://api.ebay.com{basePath} description: eBay Account API — Return_policy business capability. Self-contained, no shared references. resources: - name: return_policy path: /return_policy operations: - name: getreturnpolicies method: GET description: This method retrieves all the return policies configured for the marketplace you specify using the marketplace_id query parameter.

Marketplaces and locales

Get the correct policies for a marketplace tha outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: marketplace_id in: query type: string description: This query parameter specifies the ID of the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at ht required: true - name: createreturnpolicy method: POST description: This method creates a new return policy where the policy encapsulates seller's terms for returning items.

Each policy targets a specific marketplace, and you can create multiple policies for each marketplace. Return policies are no outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string description: 'This header indicates the format of the request body provided by the client. Its value should be set to application/json.

For more information, ' required: true - name: body in: body type: object description: Request body (JSON). required: true - name: return_policy-get_by_policy_name path: /return_policy/get_by_policy_name operations: - name: getreturnpolicybyname method: GET description: This method retrieves the details of a specific return policy. Supply both the policy name and its associated marketplace_id in the request query parameters.

Marketplaces and locales

Get t outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: marketplace_id in: query type: string description: This query parameter specifies the ID of the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at ht required: true - name: name in: query type: string description: This query parameter specifies the seller-defined name of the return policy you want to retrieve.

This value can be retrieved for a return policy by usi required: true - name: return_policy-return_policy_id path: /return_policy/{return_policy_id} operations: - name: getreturnpolicy method: GET description: This method retrieves the complete details of the return policy specified by the returnPolicyId path parameter. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: return_policy_id in: path type: string description: This path parameter specifies the unique identifier of the return policy you want to retrieve.

This ID can be retrieved for a return policy by using th required: true - name: updatereturnpolicy method: PUT description: This method updates an existing return policy. Specify the policy you want to update using the return_policy_id path parameter. Supply a complete policy payload with the updates you want to make; this call overwrites the existing pol outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: return_policy_id in: path type: string description: This path parameter specifies the ID of the return policy you want to update.

This ID can be retrieved for a return policy by using the