{"method":"POST","path":"https://api.revcent.com/v2/salvage_transactions/{salvage_transaction_id}/process","summary":"Process A Salvage Transaction","description":"Process an existing salvage transaction using the salvage transaction ID. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/ProcessSalvageTransaction.md for an in-depth overview of this operation.","operationId":"ProcessSalvageTransaction","parameters":[{"in":"path","name":"salvage_transaction_id","description":"The salvage transaction ID.","required":true,"schema":{"type":"string","description":"A 20 character salvage transaction ID.","minLength":20,"maxLength":20}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"gateway":{"description":"Process the salvage transaction on a specific gateway by providing the RevCent gateway ID. Do not include to use the salvage transactions' original gateway.","type":"string","minLength":20,"maxLength":20},"customer_card_id":{"description":"If you wish the try a non-default existing credit card associated with salvage transaction customer, provide the RevCent ID of the customer card. Do not include to use the salvage transaction customers' default card.","type":"string","minLength":20,"maxLength":20},"payment":{"description":"Provide a new credit card to be used to process the salvage transaction. If not present the existing default payment method associated with the related customer will be used.","additionalProperties":false,"properties":{"credit_card":{"description":"The credit card you wish to use.","additionalProperties":false,"properties":{"card_number":{"description":"The full credit card number, digits only.","type":"string"},"exp_month":{"description":"The credit card expiration month as a one or two digit integer, i.e. MM.","type":"integer"},"exp_year":{"description":"The credit card expiration year as a two digit integer, i.e. YY.","type":"integer"},"card_code":{"description":"The credit card code as a string, digits only. Depending on the card type this can be different lengths.","type":"string"}},"type":"object","required":["card_number","exp_month","exp_year"]}},"type":"object","required":["credit_card"]},"bill_to":{"description":"To use as the billing information when if providing a credit card with separate billing information.","additionalProperties":false,"properties":{"first_name":{"type":"string","description":"The bill to first name."},"last_name":{"type":"string","description":"The bill to last name."},"address_line_1":{"type":"string","description":"The bill to first address line."},"address_line_2":{"type":"string","description":"The bill to second address line."},"city":{"type":"string","description":"The bill to city."},"state":{"type":"string","description":"The bill to state."},"zip":{"type":"string","description":"The bill to ZIP and or postal code."},"country":{"type":"string","description":"The bill to country in three letter ISO 3166-1 alpha-3 format."},"company":{"type":"string","description":"The bill to company."},"email":{"type":"string","format":"email","description":"The bill to email."},"phone":{"type":"string","description":"The bill to phone."}},"type":"object","required":["first_name","last_name","email"]}},"type":"object","additionalProperties":false}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"API call response code.","type":"integer","format":"int32","enum":[1]},"salvage_transaction_id":{"type":"string","description":"A 20 character salvage transaction ID.","minLength":20,"maxLength":20},"result":{"type":"string"}},"type":"object","additionalProperties":false}}},"description":"Successful response."},"default":{"content":{"application/json":{"schema":{"description":"Errors specific to requests involving a payment being sent to a processor.","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"This value indicates that there is an error, of which can be either 0 = RevCent Error, 2 = Processor Decline, 3 = Processor Error, 4 = Processor Hold, 5 = Fraud Detected","type":"integer","enum":[0,2,3,4,5]},"campaign_id":{"type":"string","title":"Campaign ID","description":"A 20 character campaign ID.","minLength":20,"maxLength":20},"campaign_name":{"type":"string","description":"The campaign name."},"customer":{"type":"object","description":"The customer response object contains the details of the customer related to the item.","additionalProperties":false,"properties":{"address_line_1":{"type":"string","description":"The customer first address line."},"address_line_2":{"type":"string","description":"The customer second address line."},"blocked":{"type":"boolean","description":"Whether the customer is blocked."},"city":{"type":"string","description":"The customer city."},"company":{"type":"string","description":"The customer company."},"country":{"type":"string","description":"The customer country in three letter ISO 3166-1 alpha-3 format."},"email":{"type":"string","format":"email","description":"The customer email."},"first_name":{"type":"string","description":"The customer first name."},"internal_id":{"type":"string","description":"An internal ID given by the user for the customer."},"last_name":{"type":"string","description":"The customer last name."},"phone":{"type":"string","description":"The customer phone."},"state":{"type":"string","description":"The customer state."},"zip":{"type":"string","description":"The customer ZIP and or postal code."},"created_date_unix":{"description":"The unix timestamp of when the item was created.","type":"integer","format":"unix-time"},"id":{"title":"Customer ID","type":"string","description":"A 20 character customer ID.","minLength":20,"maxLength":20},"enabled":{"type":"boolean","description":"Whether the customer is enabled."},"metadata":{"items":{"additionalProperties":false,"properties":{"name":{"type":"string","description":"A name paired to the value for the metadata object. Limited to 100 characters in length.","minLength":1,"maxLength":100},"value":{"type":"string","description":"A value paired to the name for the metadata object. Limited to 255 characters in length.","minLength":1,"maxLength":255}},"type":"object","required":["name","value"]},"type":"array","description":"An array of metadata objects, each metadata object being a name and value pair."},"updated_date_unix":{"description":"The unix timestamp of when the item was last updated.","type":"integer","format":"unix-time"}}},"sale_id":{"type":"string","description":"A 20 character sale ID.","minLength":20,"maxLength":20},"error_code":{"description":"The specific error code.","type":"string"},"gateway_raw_response":{"type":"string","title":"The stringified JSON response returned from the gateway."},"message":{"description":"A human readable description of the error.","type":"string"},"result":{"description":"A description of the API call result.","type":"string"}},"title":"APIPaymentErrors","type":"object","additionalProperties":false}}},"description":"Error response."}}}