POST/gateway/report

Request a report

Allows you to request that a transaction report be generated and returns an identifier for the process, which once the callback is called can be obtained at the following endpoint

Request

  • Name
    auth
    Type
    Autenticación
    is Required
    REQUIRED
    Description

    Structure that contains the site authentication information generated according to the WSSE UsernameToken Profile 1.1

    • Name
      login
      Type
      string
      is optional
      Description
    • Name
      tranKey
      Type
      string
      is optional
      Description
    • Name
      nonce
      Type
      string
      is optional
      Description
    • Name
      seed
      Type
      string
      is optional
      Description
  • Name
    filters
    Type
    object
    is Required
    REQUIRED
    Description
    • Name
      startDate
      Type
      string
      is Required
      REQUIRED
      Description
      Example:2021-01-10T18:01:27-05:00
      Format:date-time
    • Name
      endDate
      Type
      string
      is Required
      REQUIRED
      Description
      Example:2021-01-12T18:01:27-05:00
      Format:date-time
    • Name
      state
      Type
      array
      is optional
      Description

      It allows you to define the status of the transactions in the report, it is a an arrangement: APPROVED, REJECTED, FAILED and PENDING

    • Name
      type
      Type
      array
      is optional
      Description

      It allows you to define the type of the transactions in the report, it an arrangement: AUTH_ONLY, CAPTURE_ONLY, CREDIT, REFUND, SETTLE, AUTH_CAPTURE, VOID, DISPUTE, CHARGEBACK, DISPUTE_LOSS, DISPUTE_WIN, PRE_AUTH, CHECKIN, CHECKOUT, RE_AUTH

  • Name
    callbackUrl
    Type
    string
    is optional
    Description
    Format:uri

Solicitud

POST
/gateway/report
curl -X "POST" https://api-co-dev.placetopay.ws/gateway/report \
-H "Content-Type: application/json" \
-d '{
    "locale": "es_CO",
    "auth": {
        "login":"c4ca4238a0b923820dcc509a6f75849b",
        "tranKey":"cV5MJlkUgPq/BLG40M1Cp2mSkJcZg7FPL4FBxKo=",
        "nonce":"NjQ4MjMzMjY0MDIyYw==",
        "seed":"2023-06-08T14:59:34-05:00"
    },
    "filters": {
        "startDate": "2023-06-07 14:59:34",
        "endDate": "2023-06-08 14:59:34",
    },
    "callbackUrl": "https://dnetix.co/ping/report"
}'

Response

  • Name
    status
    Type
    Status
    is Required
    REQUIRED
    Description

    Structure that contains information about a request or payment, informing its current status.

    • Name
      status
      Type
      string
      is optional
      Description
      Allowed values:OKFAILEDAPPROVEDAPPROVED_PARTIALPARTIAL_EXPIREDREJECTEDPENDINGPENDING_VALIDATIONPENDING_PROCESSREFUNDEDREVERSEDERRORUNKNOWNMANUALDISPUTE
    • Name
      reason
      Type
      string
      is optional
      Description
      Max length:4
      Min length:1
    • Name
      message
      Type
      string
      is optional
      Description
    • Name
      date
      Type
      string
      is optional
      Description
      Example:2021-09-21T09:34:48-05:00
  • Name
    id
    Type
    number
    is Required
    REQUIRED
    Description

Respuesta

{
    "status": {
        "status": "OK",
        "reason": "00",
        "message": "La solicitud se ha procesado exitosamente",
        "date": "2020-01-18T18:00:00-05:00"
    },
    "id": 1231
}

POST/gateway/report/obtain

Obtain a previously requested report

Allows you to obtain a previously generated report.

Request

  • Name
    auth
    Type
    Autenticación
    is Required
    REQUIRED
    Description

    Structure that contains the site authentication information generated according to the WSSE UsernameToken Profile 1.1

    • Name
      login
      Type
      string
      is optional
      Description
    • Name
      tranKey
      Type
      string
      is optional
      Description
    • Name
      nonce
      Type
      string
      is optional
      Description
    • Name
      seed
      Type
      string
      is optional
      Description
  • Name
    id
    Type
    number
    is Required
    REQUIRED
    Description

Solicitud

POST
/gateway/report/obtain
curl -X "POST" https://api-co-dev.placetopay.ws/gateway/report/obtain \
-H "Content-Type: application/json" \
-H "Accept-Encoding: gzip" \
-d '{
    "auth": {
        "login":"c51ce410c124a10e0db5e4b97fc2af39",
        "tranKey":"VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
        "nonce":"NjE0OWVkODgwYjNhNw==",
        "seed":"2021-09-21T09:34:48-05:00"
    },
    "id": 1
}'

Response

OK Once the report is available, the information is returned, which is a file separated by tabs with the following headers The type field is added if report use the type filter id date transaction_date reference currency_code amount tax payment_method internal_reference status reason merchant terminal authorization refunded installments last_digits bank_currency bank_factor bank_amount issuer_name payer_document payer_first_name payer_last_name payer_email ip_address batch_number line_number type


Respuesta

id	date transaction_date		reference	currency_code		amount tax payment_method	internal_reference	 status		reason merchant		terminal	 authorization refunded		installments	 last_digits	 bank_currency bank_factor bank_amount issuer_name payer_document	payer_first_name payer_last_name payer_email ip_address	batch_number line_number	 type
c42977b5d4ff9d9613320c7ee98e9eb0		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		4113943		USD		2327	 442.13		ID_VS	221	APPROVED		 000468232	00990101				1 0008		USD		1	2327 Testing Bank		32694548	 Miss Joanne Fadel MD	Price		[email protected] 237.234.250.30	 AUTH_ONLY	 
315c9ca9e64bed46f24a2e18bdd76468		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		8122	 USD	 4457	846.83	 ID_VS 222 APPROVED			 000468232 00990101				 1		0008	 USD	 1 4457		Testing Bank	 44056172	Charlotte Maggio Steuber [email protected]	 164.233.22.247		AUTH_ONLY			 
fd239e99125c326e92137197fd5d1959		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		753446151	USD	3798 721.62	ID_VS		223		APPROVED			 000468232		00990101			1	 0008	USD	1		3798	 Testing Bank	51751981 Mr. Abdiel Schroeder DDS		McKenzie	 [email protected]	 250.136.231.200	 AUTH_ONLY		 
be945b27ff13291409b929cc9cb15274		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		482657 USD 1401		266.19 ID_VS	 224	 APPROVED			 0468232	 00990101			 1	0008 USD 1	 1401	Testing Bank 98958097		Dr. Mia Abshire		Douglas		[email protected]	 32.1.213.30		AUTH_ONLY		 
3aaa74df49cf3634276675c95e49f2af		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		77616851	 USD	 1921	364.99	 ID_VS 225 APPROVED			 000468232 00990101				 1		0008	 USD	 1 1921		Testing Bank	 6211299	 Dr. Marcelina Huel I	Considine		[email protected]	 249.218.136.4		AUTH_ONLY		 
6e89e692975bb117db78360c8ebf0a00		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		74141	USD	773	146.87	 ID_VS 226 APPROVED				 000468232 00990101				 1		0008	 USD	 1 773 Testing Bank		22736252	 Melody Goodwin DDS		Gerlach		[email protected]	 168.87.8.132		AUTH_ONLY	 
b50e4e8cca851a578fa40917030397a3		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		828		USD		473		89.87	ID_VS		227		APPROVED			 000468232		00990101			1	 0008	USD	1		473		Testing Bank	 9397147	 Freeman Kirlin		Aufderhar	[email protected]	21.185.38.170		AUTH_ONLY			 
b66ffe1bff91a15986cba677bbaeaa7f		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		581122 USD 1767		335.73 ID_VS	 228	 APPROVED			 0468232	 00990101			 1	0008 USD 1	 1767	Testing Bank 62818359		Mrs. Rosina Mann	 Schaefer	[email protected]	15.8.188.238		AUTH_ONLY		 
135afcb2f872cf55168461e7e874242a		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		3896507		USD		7	1.33 ID_VS	 229	 APPROVED			 0468232	 00990101			 1	0008 USD 1	 7 Testing Bank		10597030	 Kristy Purdy IV	 Mills [email protected] 148.232.85.97		AUTH_ONLY		 
19868ea1110eca766186806ef0e38f71		2021-01-13T01:54:50-05:00	2021-01-13T01:54:50-05:00		68490	USD	4987 947.53	ID_VS		230		APPROVED			 000468232		00990101			1	 0008	USD	1		4987	 Testing Bank	32385057 Mr. Harley Howe Rogahn	[email protected] 87.121.113.190	 AUTH_ONLY