/
DSM (self-service online purchase system)

DSM (self-service online purchase system)

Purchase listing
A purchase listing is obtained

URL:
/admin/adnet/pub/admin/compras.html?op=l&o=xml

Optional parameters:
  • fecha_inicio y fecha_fin: it will display the purchases created within that time range.
  • pago_fecha_inicio y pago_fecha_fin: it will display only the purchases which payments were effectively registered within that time range.
Only one time range can be indicated, not both. The dates must be indicated as in the format selected in the user interface (DD/MM/YYYY HH:MM:SS o MM/DD/YYYY HH:MM:SS)

Response:
It contains a list of object <compra>.  The identifier is specified through compra_id attribute. Up to version 4.3, the purchases could only be performed by advertisers’ users. From version 4.3 on, the agencies can purchase campaigns aswell, so the user can belong to an agency. The data presented are the following:
  • moneda_id: purchase currency – See potential values in Currency annex
  • importe: total amount of the purchase
  • fecha_alta: creation date
  • estado: See annex  Purchase status
  • usuario_id: user ID of the advertiser who made the purchase
  • anunciante_id: if the the purchase was performed by an advertiser, this will be the advertiser’s identifier.
  • agencia_id: if the the purchase was performed by an agency, this will be the agency’s identifier.

Response example:

<lista>
<compra compra_id='145'>
<fecha_alta>2008-04-29 12:13:18</fecha_alta>
<moneda_id>19</moneda_id>
<usuario_id>1830</usuario_id>
<compra_id>145</compra_id>
<importe>120.0000</importe>
<anunciante_id>4343</anunciante_id>
<agencia_id></agencia_id>
<estado>1</estado>
</compra>
<compra compra_id='146'>
<fecha_alta>2008-04-29 14:21:56</fecha_alta>
<moneda_id>19</moneda_id>
<usuario_id>1830</usuario_id>
<compra_id>146</compra_id>
<importe>120.0000</importe>
<estado>1</estado>
<anunciante_id></anunciante_id>
<agencia_id>566</agencia_id>
</compra>
</lista>